package org.example.myleet.p1668;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(5 == solution.maxRepeating("aaabaaaabaaabaaaabaaaabaaaabaaaaba", "aaaba"));
        Assert.isTrue(1 == solution.maxRepeating("a", "a"));
        Assert.isTrue(2 == solution.maxRepeating("ababc", "ab"));
        Assert.isTrue(1 == solution.maxRepeating("ababc", "ba"));
        Assert.isTrue(0 == solution.maxRepeating("ababc", "ac"));
    }
}
